package com.sayyi.demo.bean;

import com.sayyi.demo.bean.domain.Source;
import com.sayyi.demo.bean.domain.SourceWrapper;

import java.util.Collections;

/**
 * @author xuchuang
 * date 2021/12/20 2:39 PM
 */
public class ParentDemo {

    public static Source genSource() {
        Source source = new Source();
        source.setName("aCai");
        source.setAge(21);
        return source;
    }

    public static SourceWrapper genSourceWrapper() {
        Source source = new Source();
        source.setName("aCai");
        source.setAge(21);

        SourceWrapper sourceWrapper = new SourceWrapper();
        sourceWrapper.setSources(Collections.singletonList(source));
        sourceWrapper.setWrapperName("wrapperName");
        return sourceWrapper;
    }
}
